<template>
  <div @click="search" class="el-button" :class="['el-button--'+type,size?'el-button--'+size:'',plain===false||plain===null?'':'is-plain']">
    <slot>查询</slot>
  </div>
</template>
<script>
export default {
  name: "djButton",
  props: {
    type: {
      //颜色
      type: String,
      default: "primary",
    },
    size: {
      type: String,
      default: "",
    },
    plain: {
      default: null,
    },
  },
  data() {
    return {};
  },
  methods: {
    search() {
      this.$emit("search");
    },
  },
};
</script>
